// 
// Decompiled by Procyon v0.5.36
// 

package com.orange.boot.environment.util;

import com.orange.boot.environment.entity.EnvironmentData;
import java.util.HashMap;
import java.util.List;

public class MapToEnvironmentDataConverter {
    public MapToEnvironmentDataConverter() {
    }

    public static EnvironmentData[] MapToEnvironmentData(List<HashMap> map) {
        EnvironmentData[] data = new EnvironmentData[map.size()];

        for(int i = 0; i < map.size(); ++i) {
            data[i] = new EnvironmentData((Integer)((HashMap)map.get(i)).get("id"), (String)((HashMap)map.get(i)).get("code"), (String)((HashMap)map.get(i)).get("name"), new Double(String.valueOf(((HashMap)map.get(i)).get("value"))), (String)((HashMap)map.get(i)).get("valueText"), (String)((HashMap)map.get(i)).get("unit"), (String)((HashMap)map.get(i)).get("icon"), (Integer)((HashMap)map.get(i)).get("Level"), (Long)((HashMap)map.get(i)).get("sourceMachine"));
        }

        return data;
    }
}
